<?php

/*	-----------------------------------------------------------
	config.php
	-----------------------------------------------------------
*/

error_reporting(E_ERROR | E_WARNING | E_PARSE | E_NOTICE);
// error_reporting(0);
    
session_start();
date_default_timezone_set('Asia/Manila');

// Connect to the database
$connection = mysql_connect('localhost', 'root', '') or die('Could not connect: ' . mysql_error());
mysql_select_db('RTU') or die('Could not select database');

//constants
define('NOW', date('Y-m-d H:i:s'));

function genereateTracking($length = 10) {    
    return substr(str_shuffle("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"), 0, $length);
}
?>